import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue')
    },
    {
      path: '/z1',
      name: 'z1',
      component: () => import('../views/z1.vue')
    },
    {
      path: '/z2',
      name: 'z2',
      component: () => import('../views/z2.vue')
    },
    {
      path: '/s1',
      name: 's1',
      component: () => import('../views/s1.vue')
    },
    {
      path: '/s2',
      name: 's2',
      component: () => import('../views/s2.vue')
    },
    {
      path: '/p1',
      name: 'p1',
      component: () => import('../views/p1.vue')
    },
    {
      path: '/p2',
      name: 'p2',
      component: () => import('../views/p2.vue')
    },
  ]
})

export default router
